# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=freac
pkgver=1.1.2
pkgrel=0
arch="all"
url="https://www.freac.org/"
pkgdesc="Audio converter and CD ripper with support for various popular formats and encoders"
license="GPL-2.0-or-later"
makedepends="boca-dev smooth-dev eudev-dev"
source="https://github.com/enzo1982/freac/archive/v$pkgver/freac-v$pkgver.tar.gz"
subpackages="$pkgname-doc"
options="!check" # No tests

prepare() {
	default_prepare

	find . -type f -exec sed -i 's|/usr/local|/usr|g' {} \;
}

build() {
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="ee9ea5d67516826eaa5c47c42e74b021ab95f0a84b1b3c357267751e713a842496fe86d59fdece71b2112e17d9edc6926f66eab826e023bb420b1e6ef7026fae  freac-v1.1.2.tar.gz"
